/*
* @Author: zyp
* @Date:   2017-08-22 19:00:14
* @Last Modified by:   zyp
* @Last Modified time: 2017-08-25 11:51:25
*/

// 背景图片
@mixin bg-image($url){
  background-image: url($url + "@2x.png");
  @media (-webkit-min-device-pixel-ratio: 3),(min-device-pixel-ratio: 3){
    background-image: url($url + "@3x.png");   
  }
  
}


// 不换行
@mixin no-wrap(){
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap ;
}


//扩大点击范围
@mixin extend-click(){
    &:before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
  }

}
//居中
@mixin center($width,$height){
  width: $width;
  height: $height;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -($height) / 2;
  margin-left: -($width) / 2;
}
@mixin ell() {
    overflow: hidden;
	-webkit-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}
//定位
//居中
@mixin absolute($top,$left){
  position: absolute;
  top: $top;
  left: $left;
}